package com.example.testdemo.scenes.stage;

import com.example.testdemo.manager.ResourcesManager;
import com.example.testdemo.manager.ScenesManager;
import com.example.testdemo.pools.ItemPools;
import com.example.testdemo.pools.TankPools;
import com.example.testdemo.resources.stage.BaseStageResources;

public final class SpriteTag {
    public final int HEART = 0;

    public final int PLAYER_TANK_START = 1;
    public int PLAYER_TANK_END = PLAYER_TANK_START;

    public final int ENEMY_TANK_START = 10;
    public int ENEMY_TANK_END = ENEMY_TANK_START;

    public final int ITEM_START = 101;
    public int ITEM_END = ITEM_START;

    public final int OBSTACLE_START = 200;
    public int OBSTACLE_END = OBSTACLE_START;

    public final int WALL_START = 400;
    public int WALL_END = WALL_START;

    private BaseStageResources mResources = null;

    public SpriteTag(int whichStage) {
        switch (whichStage) {
        case ScenesManager.SCENE_STAGE_1:
            mResources = (BaseStageResources) ResourcesManager.getInstance()
                    .getResources(ResourcesManager.RESOURCES_STAGE_1);
            PLAYER_TANK_END = PLAYER_TANK_START;
            ENEMY_TANK_END = ENEMY_TANK_START + TankPools.DEFAULT_TANKS - 1;
            ITEM_END = ITEM_START + ItemPools.STAGE_1_ITEM_COUNT - 1;
            OBSTACLE_END = OBSTACLE_START + mResources.mTileObstacleList.size()
                    - 1;
            WALL_END = WALL_START + mResources.mTileWallList.size() - 1;
            break;
        case ScenesManager.SCENE_STAGE_2:
            break;
        }
    }
}
